class AssertUtil:

    # 封装断言的方法
    @classmethod
    def ihrm_assert(cls, resp, status_code, success, code, message):
        assert status_code == resp.status_code
        assert success == resp.json().get("success")
        assert code == resp.json().get("code")
        assert message == resp.json().get("message")

    @classmethod
    def tpshop_assert(cls, login_resp, status_code, status, msg):
        assert status_code == login_resp.status_code
        assert status == login_resp.json().get("status")
        assert msg == login_resp.json().get("msg")

    @classmethod
    def keda_assert(cls,resp,status_code,msg,code):
        assert status_code == resp.status_code
        assert msg == resp.json().get("msg")
        assert code == resp.json().get("code")
